package lab02.test35;

/**
 * Created by lenovo on 2017/11/16.
 */
public class Worker extends Employee{
    int day;
    double dailySalary;
    public Worker(String name,int day,double dailySalary){
        super(name);
        this.day=day;
        this.dailySalary=dailySalary;
    }
    @Override
    public double computeSalary() {
        return day*dailySalary;
    }
}
